﻿




using System.Web.Mvc;
using Hotpot.Models;
using Hotpot.Results;
using Hotpot.ViewModels;

namespace Hotpot.Extensions
{
    public static class ControllerBaseExtensions
    {
        public static DialogResult Dialog(this ControllerBase controller, string message, DialogFormat format, params DialogButton[] buttons)
        {
            controller.ViewData.Model = new HotpotViewModelItem<Dialog>(new Dialog(message, format, buttons));

            return new DialogResult();
        }
    }
}
